package responsibilityChain;

public class Main {
    public static void main(String[] args) {
        AbstractLogger infoLogger = new InfoLogger(AbstractLogger.INFO);
        AbstractLogger debugLogger = new DebugLogger(AbstractLogger.DEBUG);
        AbstractLogger errorLogger = new ErrorLogger(AbstractLogger.ERROR);
        infoLogger.setNext(debugLogger);
        debugLogger.setNext(errorLogger);

        infoLogger.loggerMesage(AbstractLogger.INFO, "你好世界info");
        infoLogger.loggerMesage(AbstractLogger.DEBUG, "你好世界debug");
        infoLogger.loggerMesage(AbstractLogger.ERROR, "你好世界 error");
    }
}
